package com.web.sys.sercice.impl;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.web.sys.dao.ISysUserDao;
import com.web.sys.model.SysUser;
import com.web.sys.sercice.ISysUserService;

@Service("userSysService")
public class SysUserService implements ISysUserService{
	
	@Inject
	private ISysUserDao sysUserDao;
	
	
	public  SysUser add(SysUser user){
		SysUser u=sysUserDao.add(user);
		return u;
	}


	@Override
	public void delete(String id) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void update(SysUser user) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public SysUser load(String username) {
		SysUser u=(SysUser)sysUserDao.queryObject("from SysUser where name=?", username);
		return u;
	}

	
}
